package com.gitee.wsl.ext.number


fun Int.toIndexes(): IntRange = 0..<this

fun Int.toIndexes(step:Int) = 0..<this step step

fun UInt.toIndexes(): IntRange = 0..< this.toInt()

fun UInt.toIndexes(step:Int) = 0..< this.toInt() step step

fun Long.toIndexes() = 0..< this

fun Long.toIndexes(step:Long) = 0..< this step step